<% modelname = AcademicDegree.human_name %>
<% form_for(@academic_degree) do |f| %>
  <%= f.error_messages %>

  <table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">

    <caption style="border-bottom: 0px;">
      <%= "#{controller.action_name == 'edit' ? t(:update_x, :x => modelname) : t(:create_x, :x => modelname)}" %>
    </caption>

    <tr>
      <td class="label"><%= f.label AcademicDegree.human_attribute_name(:name) %></td>
      <td><%= f.text_field :name %></td>
    </tr>
    <tr>
      <td class="label"><%= f.label AcademicDegree.human_attribute_name(:abbreviation) %></td>
      <td><%= f.text_field :abbreviation %></td>
    </tr>
    <tr>
      <td class="label"><%= f.label AcademicDegree.human_attribute_name(:ordering) %></td>
      <td><%= f.text_field :ordering, :style => "width: 40px;" %></td>
    </tr>

    <tr>
      <td class="submit" colspan="2">
        <%= f.submit controller.action_name == 'edit' ? t(:update) : t(:create) %>
      </td>
    </tr>
  </table>

<% end %>